<?php

use yii\db\Migration;
use yii\db\Schema;

class m190102_071730_ADD_FIELD_PRODUCT extends Migration
{
    public function up()
    {

        $this->addColumn('{{product}}', 'special', Schema::TYPE_TEXT. " NULL COMMENT '产品特色' ");

        $this->addColumn('{{template}}', 'special', Schema::TYPE_TEXT. " NULL COMMENT '产品特色' ");

        $this->addColumn('{{product}}', 'important', Schema::TYPE_TEXT. " NULL COMMENT '重要提示' ");

        $this->addColumn('{{template}}', 'important', Schema::TYPE_TEXT. " NULL COMMENT '重要提示' ");

        $this->addColumn('{{product}}', 'cross_talk', Schema::TYPE_TEXT. " NULL COMMENT '相声相关' ");

        $this->addColumn('{{product}}', 'safe_1', Schema::TYPE_TEXT. " NULL COMMENT '行前解约风险提醒' ");
        $this->addColumn('{{product}}', 'safe_2', Schema::TYPE_TEXT. " NULL COMMENT '人身财产安全警示' ");
        $this->addColumn('{{product}}', 'safe_3', Schema::TYPE_TEXT. " NULL COMMENT '第三方责任告知' ");

        $this->addColumn('{{template}}', 'safe_1', Schema::TYPE_TEXT. " NULL COMMENT '行前解约风险提醒' ");
        $this->addColumn('{{template}}', 'safe_2', Schema::TYPE_TEXT. " NULL COMMENT '人身财产安全警示' ");
        $this->addColumn('{{template}}', 'safe_3', Schema::TYPE_TEXT. " NULL COMMENT '第三方责任告知' ");




    }

    public function down()
    {
        echo "m190102_071730_ADD_FIELD_PRODUCT cannot be reverted.\n";

        return false;
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
